<template>
  <div class="home">
    <h1>这里是首页</h1>
    <router-link to="/home/news">新闻</router-link>

    <h2>{{$store.state.a.name}}</h2>

    <router-view></router-view>



    <br>

    <h2>{{$store.state.counter}}</h2>
    <button @click="$store.commit('Jcounter')">+</button>
    <button @click="$store.state.counter--">-</button>
  </div>
</template>

<script>


export default {
  name: 'Home',
}
</script>
